<template>
  <Person ref="ren"></Person>
  <button @click="showLog">点我输出h2</button>
  <!-- html -->
</template>

<script lang="ts" setup name="App">
import Person from './components/Person.vue'
import {ref} from "vue";

let ren = ref()

function showLog() {
  console.log(ren.value)
}
</script>

<style >
/* 样式 */

</style>